import { useState } from 'react';

export default () => {
  //获取的数据
  const [list, setList] = useState([]);
  //控制窗口的开关
  const [open, setOpen] = useState(false);

  //查询条件
  const [query, setQuery] = useState({
    page: 1,
    pageSize: 10,
    name: '',
  });
  return { list, setList, open, setOpen, query, setQuery };
};
